import os.path
from pydantic import Field
from infrastructure.excel import ExcelReader


def excel_to_json_array_tool(
        excel_file: str = Field(..., description='excel绝对文件路径')
) -> list[list]:
    json_array = ExcelReader.read_excel_as_json_array(excel_file)
    return json_array
